package com.yzt.index.bean;

import androidx.fragment.app.Fragment;

import com.yzt.plugin_widget.tableBar.listener.CustomTabEntity;

import java.util.ArrayList;

/**
 * author : bob
 * date   : 2022/11/30
 * desc   :
 */
public class MainInfo {

    private ArrayList<CustomTabEntity> customTabList;

    private ArrayList<Fragment> fragmentList;

    public ArrayList<CustomTabEntity> getCustomTabList() {
        if (customTabList == null) {
            customTabList = new ArrayList<>();
        }
        return customTabList;
    }

    public ArrayList<Fragment> getFragmentList() {
        if (fragmentList == null) {
            fragmentList = new ArrayList<>();
        }
        return fragmentList;
    }

    public ArrayList<String> getTitleArray() {
        ArrayList<String> list = new ArrayList<>();
        for (CustomTabEntity entity : customTabList) {
            list.add(entity.getTabTitle());
        }
        return list;
    }
}
